Answer is 255
finally 1 orange will remain with him.
- on 1st gate he will give 128
- on 2nd gate he will give 64
- on 3rd gate he will give 32
- on 4th gate he will give 16
- on 4th gate he will give 8
- on 6th gate he will give 4
- on 7th gate he will give 2
Answer is 255
finally 1 orange will remain with him.
- on 1st gate he will give 128
- on 2nd gate he will give 64
- on 3rd gate he will give 32
- on 4th gate he will give 16
- on 4th gate he will give 8
- on 6th gate he will give 4
- on 7th gate he will give 2