Pergunta de entrevista da empresa IBM

Date time based sort question