Why am I getting a problem in the twonim question?

https://www.codechef.com/viewsolution/21946525

//