Merge multiple sorted arrays using min-heap | Microsoft Interview Question