6.1: Delete Extreme Values From a List
When analyzing large amounts of data, it it often desirable to remove the most extreme values (some of the largest and some of the smallest) before performing other calculations. Write a function that takes a list of numeric values and a non-negative integer n as its parameters. The function should create a new copy of the list with the n largest and n smallest elements removed, and then return the new copy of the list. The order of the elements in the returned list does not have to match the order of the elements in the original list. (This means you can sort the original list to help you find the extreme values.)