Reverse string and pow