Shortest Job First Problem Leetcode