Question d’entretien chez JPMorganChase

leetcode problem I had to solve