Pow(x, n)

Solution Code

Time Complexity

O(log n)

Space Complexity

O(1)