IBM interview question

Date time based sort question