string reverse
sum of squares and cubes