Pregunta de entrevista de Tata Consultancy Services

Not much technical all logical.