Pregunta de entrevista de IBM

Date time based sort question