Intel Corporation interview question

write code to sort a singly linked list