add a solution to pow-n.cc