Amazon interview question

For coding, they asked to merge k sorted queues