Google interview question

Calendar sorting with intervals and lists