Domanda di colloquio di Desmos

A Leetcode easy question, basic string/array manipulation and then a very simple take home problem.