sumOfSquares

The array must not be null

Return

the sum of the squares for the elements of the array