Pergunta de entrevista da empresa Samsung Electronics America

Coding interview to code a limite problem.