Dominant Subarrays

Company: DevRev_24aug

Difficulty: medium