Pergunta de entrevista da empresa Acrontum

Very simple programming problem which had to be solved with the interviewer.