Question d’entretien chez Google

Basic data structure and recursion question