Pregunta de entrevista de OMV

How would you solve this "example" problem?