I don’t know how to solve this, I am not able to make the logic for that, So Please help me for that.
Don't know Please help me for that
the logic for solving this problem is a very simple one. Sort the time with finishing time, select the first activity and then look for the next activity with starting time greater than equal to the finishing time of the first activity and then select that activity and keep doing this till the end.
Refer to this article for code and more detailed explaination:
Is It Of Greedy Section. I haven’t done that till now.
yes this is of greedy section, please study about it before attempting this 
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.