Question d’entretien chez ByteDance

Algorithm question was related to recursion