Total of All Subarray Maxima

Company: InMobi_9oct

Difficulty: medium