Sponsored
Use these hints if you're stuck. Try solving on your own first.
Get the total sum and subtract the minimum and maximum value in the array. Finally divide the result by n - 2.
Solve with full IDE support and test cases