Cubic Interview Question

Write a function that takes one integer and can determine whether that integer is power of 2.