Amazon Interview Question

basically an overview and efficiency test