Pergunta de entrevista da empresa OpenBet

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