Pergunta de entrevista da empresa TUQ

To solve a leetcode question