MySmartPrice interview question

How can you make your code efficient?