Amazon interview question

Online assessment q includes some sort of sorting algorithm