It’s a Mad Mad Mad Mad World (1963)

A group of strangers come across a dying many who tells them of a stolen treasure buried beneath a “Big W.” The group embarks on a madcap race to find the loot. Along the way, others are pulled into the the chase with everyone under surveillance by a police captain intent on solving the years old mystery of the stolen money.