function s = sumSquares(n)
    s = 0;
    for k = 1:n
        s = s + k^2;
    end
end


% s=sumSquares(8)