IBM Interview Question

Date time based sort question