"When j is the largest value, your function will return j * j + j * j." . . . .