Problem Statment
Sort the given Linked List using Quick Sort.
Input:
A method takes 1 argument: address of the head of the linked list.
The struct Node has a data part which stores the data and a next pointer which points to the next element of the linked list.
There are multiple test cases. For each test case, this method will be called individually.
Output:
Set *link to head of resultant linked list.
Input Format
[10 -> 7 -> 11-> 12-> 6]
Output Format
[ 6 -> 7 -> 10-> 11-> 12]