Time Limit Exceeded for Pro1.4 of Week3