Autodesk Interview Question

linked list, sort them