Bank of America Interview Question

Python algorithms and functions. How to solve an optimization problem Linear regression