Leetcode 2832. Maximal Range That Each Element Is Maximum in It | Hello Interview