Pergunta de entrevista da empresa Smart Energy Water

leetcode question was asked to solve