JPMorganChase interview question

Solve an optimisation problem with differential equations.