Write the sliceInHalf function for a Linked List (with size and tail). It should split the list into two halves. The first half should remain in this list, and the second half should be returned as a new list. If there are an odd number of nodes, the extra node should go in the second half.
Both lists wonβt necessarily end up with size = (size / 2). That is how long the first list should end up. Use the length of it to calculate the length of the second list.