Update power.cpp

add a new no-recursive solution