MathWorks interview question

Merge k Sorted arrays and Dutch Flag Problem