Pregunta de entrevista de Cognizant

How would you solve problem