Epic interview question

Implementation of recursive functions to solve problems.