Amazon interview question

phone leetcode question was Merge k sorted lists.