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