I am having trouble understanding why this block of code runs.
How do you know what the targetSum is? If i and j are both 0 how does === targetSum return true?