Row With Maximum Ones Leetcode Javascript