Pergunta de entrevista da empresa Ultria

Same program asked by both the interviewer in different technical rounds. not sure if this is coincidence though.