Minimum Number Of Platform Leetcode Problems Javascript