Fill in sumOfSquares using a stream so that it returns the sum of the squares.
sumOfSquares
mapToInt turns each element into an int, and sum() adds them. The program prints 30 (1+4+9+16) and then 0.
mapToInt
int
sum()
30
0