The Slice() function is present in sort package and is used to sort a slice of array in any manner. This function takes two arguments one is the array which is to be sorted and the other argument is a function which states the order in which the given slice to be sorted. The functio...