Minimum Processing Time Leetcode Javascript Problems Solving For X