LeetCode - Power of Three