Who gets lucky in lifeComputer Science Level 2
100 people are standing in a circle in an order 1 to 100.
No.1 has a sword. He kills next person (i.e.no. 2 )and gives sword to next to next (i.e no.3).
Every person does the same until only 1 person is alive.
Which number survives in the end?