Strictly Increasing Sequence: given N non-negative integers, you may reduce each element by X (0 <= X <= a[i]) at most once; can the array become strictly increasing?
Asked in the OA stage. For each element, choose its own reduction amount, including zero. Implement can_be_strictly_increasing(a) and return a boolean indicating whether some valid reductions produce a strictly increasing array.
Input is a list a of non-negative integers. Return True or False.
def can_be_strictly_increasing(a):