
You are given an array of events where events[i] = [startDay _i , endDay _i , value _i ] . The i ^th event starts at startDay _i _ and ends at endDay _i , and if you attend this event, you will receive a value of value _i . You are also given an integer k which represents the maximum number of events you can attend.
You can only attend one event at a time. If you choose to attend an event, you must attend the entire event. Note that the end day is inclusive : that is, you cannot attend two events where one of them starts and the other ends on the same day.
Return the maximum sum of values that you can receive by attending events.
1 <= k <= events.length1 <= k * events.length <= 10 ^61 <= startDay _i <= endDay _i <= 10 ^91 <= value _i <= 10 ^6