f ' arr [ i ] + 1' is in ' um ' and its length of subsequence is greater than ' len '
if ( arr [ i ] + 1 in um and len1 < um [ arr [ i ] + 1 ] ) : NEW_LINE INDENT len1 = um [ arr [ i ] + 1 ] NEW_LINE DEDENT