Partially solved MaximumDifference problem (naive approach?)