Sort the given intervals based on their end times. This is crucial to ensure that you are considering intervals that end earliest first. Start with the first interval and consider it as part of the solution. Iterate through the sorted intervals.
For each interval, check if its start time is greater than or equal to the end time of the last selected interval. If it is, add it to the solution. Maintain a count of the selected intervals. The count represents the maximum number of non-overlapping intervals.