Amazon interview question

Algorithm efficiency optimization for almost every code that u write.