Problem 14

Recursive and iterative solution added