A boy and a girl are sitting on the porch.
"I'm a boy," says the child with black hair.
"I'm a girl," says the child with red hair.
If at least one of them is lying, who is which?
You have a thousand Re. 1 coins with you. You have ten bags with you and you can put any number of coins in each of the bags. The condition is that if someone asks you for any amount between 1 and 1000, you must be able to give that amount by just giving the bag (you are not allowed to open the bag and give coins).