Pergunta de entrevista da empresa Infosys

A DP coding question on their website