Determines if a number is a power of two by checking if it has exactly one set bit.
Explain code with DocComment! Try out your own code!