sumOfSquares

The array must not be null

Return

the sum of the squares of the elements of the array