Given LinkedList and K=2, N=4
1->2->3->4->5->6->7->8->9
so Partitioned LinkedList will be
1->2->3->4->5->6->7->8->9
Now delete first K nodes from each subpart and return linked list
3->4->7->8
Here first 2 nodes are deleted from each subparts.
1->2->3->4->5->6->7->8->9
so Partitioned LinkedList will be
1->2->3->4->5->6->7->8->9
Now delete first K nodes from each subpart and return linked list
3->4->7->8
Here first 2 nodes are deleted from each subparts.