Solutions for remove dups 1 and 2
solution for pow(x, n)