Given an array of events where each event is represented as [startDay, endDay, value], and an integer k (maximum number of events you can attend), return the maximum sum of values you can receive by attending at most k events. You can only attend one event at a time,…