Modify constructor of Task class such that it does not allow the endTime to be earlier than startTime. Create helper function endIsEarlierThanStart.