Pregunta de entrevista de Optiver

Implement an algorithm to merge N sorted lists.