Driver Code
var root = null ; root = pushIn ( root , 8 ) ; root = pushIn ( root , 7 ) ; root = pushIn ( root , 6 ) ; root = pushIn ( root , 5 ) ; root = pushIn ( root , 4 ) ; root = pushIn ( root , 3 ) ; root = pushIn ( root , 2 ) ; root = pushIn ( root , 1 ) ; var K = 3 ; splitListInParts ( root , K ) ;