6.25. Solution: Recursive factorial and sum