Pow(x, n)MediumAcceptance Rate 33.5%Implement pow(x, n), which calculates x raised to the power n.ExamplesExample 1Inputx = 2.00000, n = 10Output1024.00000Constraints-100.0 < x < 100.0-2^31 <= n <= 2^31 - 1n is an integer.