I was asked a question as such i am a shopkeeper having six weights 8,4,2,1,1/2,1/4 kg. Now i have to calculate the sum of all the possible different combinations of weights and no combinations should be repeated. I was given 15 minutes to figure it out but was unable to solve it. Can anybody suggest the approach.