Pergunta de entrevista da empresa Nagarro

after the online test they called for interview.they given 2 questions of programming(psedu code).