I want a data structure that supports 2 queries. One of them is an update in which we update the element at position $$$a$$$ to $$$b$$$. The second query is getting the index of the maximum element in the range $$$[l, r]$$$. For the second query, if there are 2 elements with the same value and that value is the maximum, output the minimal index. Examples: Initial array = [5, 4, 3, 9]. Do first query $$$2, 4$$$. array = [5, 4, 4, 9]. Do second query(0, 3). Answer = 3. Do first query $$$0, 100$$$. array = [100, 4, 4, 9]. Do first query $$$3, 100$$$. array = [100, 4, 4, 100]. Do second query(0, 1). Answer = 0.