question 12 code optimization