Pergunta de entrevista da empresa IBM iX

To solve a Leetcode question