Range Sum 2d Leetcode Problems