Pergunta de entrevista da empresa CureMD

Reverse a numeric digit. Remove repeating characters for an array.