https://wikimass.com/c/sum-of-array