PubMatic interview question

Sort the single linked list with sub-list in each node.