Minimum Number Of Platform Leetcode Javascript 30