Leetcode, Interval, Interview Questions, Google, Meta.
compute the minimum and maximum starting indices at which it will be an amazing number. If A[i] > i, i.e. number is greater than the index, then for all starting indices in the range [i+1, length(A)-A[i]+i], if length(A)-A[i]+i > i, A[i] would be amazing number. If A[i] < i, i.e. it is already an