Maximum Average Pass Ratio Leetcode Javascript Solutions