Walmart Global Tech interview question

some standard optimization formulation problem