Domanda di colloquio di CGI

LeetCode algorithm question solved using JavaScript.