Movie Festival CSES problem set solution -
The first input line has an integer : the number of movies.
After this, there are lines that describe the movies. Each line has two integers and : the starting and ending times of a movie.
Print one integer: the maximum number of movies.
Step -1 take input in a vector as a pair first element is ending time ans second element is starting time
Step -2 sort the vector in increasing order because we will watch that movie which is ending first.
Step -3 iterate over vector and calculate ans .