Domanda di colloquio di Smart Energy Water

leetcode question was asked to solve