LeetCode Solutions for pow(x,n)