Add solution to power(x,n) of leetcode