Two pointer Approach

please explain the first brute force method in this video of finding if sum of subarrays is a number.