Rosetta Problems

Maximal Range That Each Element Is Maximum in It

https://leetcode.com/problems/maximal-range-that-each-element-is-maximum-in-it