Nylas interview question

Merge Sort, heap, coding round