Amazon interview question

how would i handle the challenges?