Row With Maximum Ones Leetcode Problems Javascript