Pergunta de entrevista da empresa Tradebot

Design an algorithm that tests if a number is a power of two.