Help me in solving HP18 problem

My issue

Can someone explain me 2nd testcase?

My code

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	return 0;

Problem Link: HP18 Problem - CodeChef

for second test case
first bob which has lucky number 2 will remove 4 .
now the array become [1,2,3,5]
then alice which has lucky number 4 will not be able to remove any number .
So BOB will win the game.

1 Like