text: If length is odd then add an integer and then a UD sequence starting at i + y
code: elif y % 2 == 1 : NEW_LINE INDENT ans = max ( ans , dp [ i ] [ 1 ] + 1 + dp [ i + y ] [ 1 ] ) NEW_LINE DEDENT return ans NEW_LINE