Amazon interview question

Practice cracking the coding interview