Pregunta de entrevista de OLA Electric

How to approach in solving a problem