Amazon Interview Question

Algorithm efficiency optimization for almost every code that u write.