Question d’entretien chez PubMatic

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