Stores the maximum number of steps that can be taken from the current index
steps = arr [ i ] NEW_LINE minimum = MAX_VALUE NEW_LINE for j in range ( 1 , steps + 1 , 1 ) : NEW_LINE INDENT if i + j >= n : NEW_LINE INDENT break NEW_LINE DEDENT DEDENT