Amazon Interview Question

Sort a linked list in ascending order