LeetCode: Calculate the power of x raised to n

Problem statements:

Constraints:

Solution:


------ End ------