NVIDIA interview question

Round 5 : K merge sort related problem.