Elinvar interview question

How to optimise an algorithm