Amazon interview question

How do you merge n sorted lists and code it.