WA for brute force for Binary Nim (BINIM)

I can’t understand why my code is giving WA.

Here is the link to my submission: CodeChef: Practical coding for everyone