Question d’entretien chez Duolingo

questions about time/space complexity for some code