Pregunta de entrevista de Tata Consultancy Services

logic based question