Pergunta de entrevista da empresa Broadridge

Asked me 2 questions which could be solved using any programming language and 1 puzzle in the first round