What is wrong with this solution for GIFTCHEF?

What is wrong with this solution for the problem GIFTCHEF CodeChef: Practical coding for everyone Solution: CodeChef: Practical coding for everyone

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