Amazon interview question

basically an overview and efficiency test