https://hack.codingblocks.com/contests/c/547/687
Can you please explain the first test case? In the test case , Mike is on(2,4) and he has to reach (1,2) and he can take 0<k<=min(2-1,4-2) step . i.e k=1, So if he moves to (1,4) so his friend has only one option left to move to (1,3) and finally mike wins with making it to (1,2) as he is playing optimally…