Topic: Array Problem / Level: advanced

Problem: Given an array of integers, find the maximum sum of a subarray where the sum of elements is less than the average of the entire array.

Run the code to see the output here...