Factorization Game

getting tle in test cases . I have used game theory concepts
ide: https://ide.codingblocks.com/s/241787

@Vishal123 hey question is based on NIM game theory ,I suggest you to read that ,and here is code for reference: