A problem by Vraj MistryLevel pending
100 people are standing in a circle. The person standing at number 1 is having a sword. He kills the person next to him with the sword and then gives the sword to the third person. This process is carried out till there is just one person left.
Can you find out the no. of the person who survives?