Astek Interview Question

how do you optimize your algorithme