Autodesk interview question

linked list, sort them