[leetcode] problem 342 – power of four