Pregunta de entrevista de SLB

Sorting and merging questions. Leetcode medium