Amazon interview question

there was a coding assessment