Intel Corporation Interview Question

Easier version of Leetcode medium: Pow(x, n)