When you enter in 1st door, you spend Rs 5 & remaining money will double. Again you spend Rs 5 2 times in next door then remaining money gets doubled. Again spend 5 Rs 2 times in next door & remaining money doubled then finally you spend Rs 5 in next door and you now have 0.
How much money you had when you started?