Code not working
which question you are solving incredible huk??
Your are interpreting the question in wrong way
if N=14 it means hulk want to reach at 14th step
as hulk can jump in powers of 2 only
so first he go to 8th step then take jump of 4 (to reach at 12th step) and then take jump of 2 to reach at 14
hence ans is 3
i hope now question is clear