Minimum Processing Time Leetcode Problem 1