Function to Compute the Average Salary Excluding the Minimum and Maximum Salary
Given an array of unique integers salary where salary is the salary of the employee i. Return the average salary of employees excluding the minimum and maximum salary. Example …