Question d’entretien chez Microsoft

It was some random leetcode style question.