Domanda di colloquio di FastModel Sports

How would you use recursion in this solution?