Enerflex interview question

How would you go about optimizing a refrig loop.