Pregunta de entrevista de Evolute Systems

How will I solve the problem , by giving one DSA QUESTION