Amazon interview question

Basic engineering stuffs, amazon principles