Pregunta de entrevista de Infosys

Coding round decides what would they offer.