this is regarding the last number standing problem.
it requires the number in an array to be extracted at a specified position .
then the array needs to traverse through the right position of the extracted number until there's the last number in the array. that number is the answer.
for eg.
if the specified position is 2
then in the array 1,2,3,4,5
it should go this way
1,3,4,5
1,3,5
3,5
3 ---.the answer