Domanda di colloquio di Optiver

Implement an algorithm to merge N sorted lists.