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.