OpenBet interview question

Coding: How to determine if a given integer is a power of 2