Pregunta de entrevista de BMW Manufacturing

How to solve this equation