In a scheduling system, there are n events represented by two arrays, start and finish, both of size n. The i-th event begins at start[i] and ends at finish[i] (where 0 <= i < n).
A subset of these events is considered high-priority at least one event within it overlaps or intersects with every other event in the subset.
Determine the maximum size of a high-priority subset of events.
Notes:
Example:
The largest high-priority subset is {2, 3, 5} where event (2, 5) intersects the remaining events in the subset.
Function Description: Complete the 'getSubsetLength' function below.
The function is expected to return an integer representing the length of the largest high-priority subset of events.
Parameters: