FastModel Sports interview question

How would you use recursion in this solution?