Topic: Array Problem / Level: intermediate

Problem: Given an array, find the maximum sum of a subarray that has at least two distinct elements.

Run the code to see the output here...