Pergunta de entrevista da empresa Emma

They also asked on Interview puzzle.