There is one test case (5,12). The expected output is true.

It seems to be false. If the first player select 5, the second player can select 1, then no matter what is the next from first player, the second player wins. If the first player select one from [1,2,3,4], for example 1, the second player can select another one from 1-4, which make sum of two numbers as 5 -- i.e. 4 for the example, then the first player has no way to win.

Is there anything wrong with my logic above? Thanks.