Regnology Group interview question

Algo implementation of an optimization problem