recursion homework (palindrome, sum and factorial)