Long Break
You are organizing an event where there will be a number of presenters. The event starts at time 0 and time be allocated for networking at any time during the event when there is not a presentation being made. The presentations may not overlap as they are in the same room, but this allows them to run consecutively, without breaks. While the order of speeches cannot be changed, there is a maximum number given that indicates how many speeches may be rescheduled. Your goal is to maximize the length of the longest networking period you can arrange.
Complete the function maxNetworkingTime in the editor.
maxNetworkingTime has the following parameters:
int[] start: an array of integers indicating the start times of the presentationsint[] finish: an array of integers indicating the end times of the presentationsk: the maximum number of presentations that can be rescheduledReturns
int: the maximum length of the longest networking period that can be arranged
1Example 1

Constraints
Limits and guarantees your solution can rely on.
Unkown for now. Will be sure to add once find them