Amazon interview question

Efficiency of any code you write...