Domanda di colloquio di PubMatic

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