General Motors (GM) interview question

Merge step in merge sort. A mining problem.