Pregunta de entrevista de Tata Consultancy Services

some puzzle problem