result to 0 to store the sum of divisors.nums.divisorSum to the number plus 1 (since 1 and the number itself are always divisors).divisorCount to 2 (for 1 and the number itself).i, increment divisorCount by 2 and add i and the quotient to divisorSum.divisorCount exceeds 4, break the loop as we are only interested in numbers with exactly four divisors.divisorCount is exactly 4 after the loop, add divisorSum to result.result.