Palindromic Binary Number

I think in this question there is a bug