write a program to find the sum of all sub-arrays of a given integer array.
By Timmy Orn at Nov 05 2020