Minimum Number Of Platforms Problem Leetcode Javascript Problems