Maximize grid-path expression and count sawtooth subarrays | Capital One