Returns the second highest and second lowest numbers in an array. This is a naive approach as it may not be the most efficient because we are initially sorting the array, which is time consuming.