If Previous element subsequence count is greater than zero then increment subsequence count of current element and decrement subsequence count of the previous element .
elif ( cnt [ a [ i ] - 1 ] > 0 ) : NEW_LINE INDENT cnt [ a [ i ] - 1 ] -= 1 ; NEW_LINE cnt [ a [ i ] ] += 1 ; NEW_LINE DEDENT