[leetcode] problem 231 – power of two