Returns the elements starting at the given index and ends after ‘n’ count.
Array: Location of the list to slice
Index: Index of the first value (index starts from zero)
Count: The number of consecutive values to return
Output-location: Location to store the output data