Domanda di colloquio di Odessa

Leetcode easy problem which can be solved in 2 mins.