Description - Given the total number of persons N and a number k which indicates that k-1 persons are skipped and the kth person is killed in circle. The task is to choose the person in the initial circle that survives.
Rules - Players stand in a circle, and every 'k' players are eliminated in turn until only one remains, with 'k' increasing after each elimination round.
Enter the number of circles:
Enter the value of k (k > 1):
Guess the survivor position (starting from 1):