ind the man who will survive. There is a scenario that only one person will survive. ‘N’ person will stand in a circle. Initially first person will be holding the gun. You are given with number ‘k’. The person who is holding the gun has to count to ‘k’ starting from him and shoot the person at which k ends and then pass the gun to next alive person. Your task is to find the place where you will survive. Input Description: Two numbers – ‘N’ and ‘k’ Output Description: Find the place where you will be safe (indexing at 1) Sample Input : 2 1 Sample Output : 2
plz explain this que with another sample input and output.