Selects the maximum number of non-overlapping intervals by always choosing the interval that finishes earliest.
Explain code with DocComment! Try out your own code!