Pergunta de entrevista da empresa Infosys

Not cleared coding round , only solved 1 question