LinkedIn interview question

Merge and sort k sorted arrays