Domanda di colloquio di UBS

leetcode easy medium question that wa bit difficult