Pregunta de entrevista de Halliburton

How did you approach this problem?