Consider an array of n ticket prices, tickets. a number, m, is defined as the size of some subsequence, s, of tickets where each element covers an unbroken range of integers. that is to say, if you were to sort the elements in s, the absolute difference between any elements j and j + 1 would be either 0 or 1.
required:
determine the maximum length of a subsequence chosen from the tickets array.