Pergunta de entrevista da empresa HCLTech

Project that had been done and explain the answer written on the test sheet (regarding the pseudo code question)