Pregunta de entrevista de Meta

Solving the math euqations with stack