Greedy Algorithm for Job-Competion Optimization Time