Creates a subset of elements from a start index (inclusive) to an end index (non-inclusive) of the list.
Starting index (inclusive).
Ending index (non-inclusive).
Linked list.
A new linked list with a subset of elements between start
and
end
of the list.
Creates a subset of elements from a start index (inclusive) till the end of the list.