Amazon interview question

Sort a linked list in ascending order