I didn't understad what question acutally say

can you help me with this problem please i am unable to build the logic behind the inputs and outputs

hello @Gajesh-Namdeo-1171329206542221

In this problem u will be given n activites whose start and end time is given.
now the task is u need to tell what is the maximum number of activites u can perform (constraint is that u cannot do two overlapping activites together)
for example->
image

here u have 3 activities.
if u pick 1st (10-20) then u cannot pick 2nd becuase its time overlap.
best choice is to pick 1st and 3rd becuase they are not overlapping .
hence answer will be 2.