Rohit is on his way to visit your Grandma, who lives at the end of the state.It's her birthday, and he want to give her the cakes that he has made.Between his place and her grandma house, he need to cross 7 toll bridges.
Before you can cross the toll bridge, you need to give them half of the cakes you are carrying, but as they are kind trolls, they each give you back a single cake.
How many cakes do rohit have to carry with him so he can reach his grandma home with exactly 2 cakes?
Solution:
2 cakes
At each toll bridge you are required to give half of your cakes, and you receive one back. Which leaves you with 2 cakes after every bridge.