Pregunta de entrevista de Amazon

Algorithm efficiency optimization for almost every code that u write.