Given an array of integers, return the average of all elements that are not the maximum or minimum. If no elements remain that are not the maximum or minimum, return 0.

Complete the following file:

prog.cpp

#include <iostream> using namespace std; double averageWithoutMaxAndMin(const int arr[], int arr_size) {
}