How to return a linkedlist with head as minimum element and tail as maximum?
The function shiftSmallLarge() takes the head node of a linked list as a parameter and return