It was like intersection of start and end time and maximum profit
Input
n=3
start time = 0900 = 9 AM
end time = 1030 =10:30 AM
fees = 100
start time = 1000 = 10 AM
end time = 1100 =11:00 AM
fees = 500
start time = 1130 = 11:30 AM
end time = 1200 =12:00 AM
fees = 300
Output:
Ans is array with two values [ number_of_appointments_left,profit_from_them]
2,400
left 1st and 3rd so 2 and 300+100=400
he took appointment 2nd with 500 fees and rest are timing which are overlapping strings
