Eze Software interview question

Brainteasers-The barrel question