Amazon interview question

was asked to take a test