2832: Maximal Range That Each Element Is Maximum in It

Problem Statement