Ovarro Interview Question

a technique question about optimisation