Amazon interview question

About my project