Pregunta de entrevista de PubMatic

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