NVIDIA Interview Question

Round 5 : K merge sort related problem.