Wrong testCases Answer

May i know what is wrong in this logic

hi @riya17 you must sort the array according to the ending times of activities and then choose as many activities as possible.