What is wrong with this solution for GIFTCHEF?

What is wrong with this solution for the problem GIFTCHEF https://www.codechef.com/NOV16/problems/GIFTCHEF Solution: https://www.codechef.com/viewsolution/12098524

Can anyone please explain where did I do wrong? I have used bitmasking and (n+2)th fibonacci number for the solution.

No1 will debug your code bro.

Since the contest is over by now, you can see other people’s solution, generate test cases and see on what test case your solution is going wrong.

Any results answer coming from google? Should try asking Mr Google