This is most likely one of those questions that they don't know the answer to. But want to see your problem solving or analytical abilities.
Things you should've asked.
1) What endian is the integer? (The underlying architecture).
2) Count bits from left or right?
They use a similar one over here.
.e.g How many petrol stations are their in the country? When going for a job at a petroleum software development company.