Function to return the length of subsequence
def maxLength ( n : int , v : List [ int ] ) -> int : NEW_LINE INDENT where = [ 0 for _ in range ( n + 2 ) ] NEW_LINE arr = [ Arrays ( ) for _ in range ( n ) ] NEW_LINE DEDENT