5.2 Recursion in a specified problem solution