Hint if using pow()


#1

just think range of the for loop, minimize the range