Pergunta de entrevista da empresa Cognizant

Technical was on coding. Pseudo code in any language