Pergunta de entrevista da empresa OnMobile

Write a program to find whether a number is 2 to the power n.