Amazon interview question

merge k sorted lists using iterator