Pregunta de entrevista de Bank of America

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