Row With Maximum Ones Leetcode Javascript Question