[leet code] Pow(x,n)