DIY: Merge K Sorted Lists

Solve the interview question "Merge K Sorted Lists" in this lesson.

Problem statement

You will be given multiple sorted lists and your task is to merge them into a single sorted list.

Input

...