Question d’entretien chez CGI

LeetCode algorithm question solved using JavaScript.