Question d’entretien chez Signify

A leetcode easy question, with the normal solution and advanced solution.