Question d’entretien chez LogicHub

Very simple algorithm question. Hint: GeeksForGeeks