only last test passes
ide: https://ide.codingblocks.com/s/224349
Piles Again - game theory
@Vishal123
consider this testcase
1
2
2 2
your code prints “Second” but the actually output is “First” because first player take the 2 coins from 2nd pile and put on 1st, Now second player don’t have any move.