Sony interview question

how do you optimize your code