Amazon Interview Question

implement the math.pow function