Expedition Technology Interview Question

How can you solve an optimization problem with constraints?