Write a recursive function to sum all the values a jagged array. Function Signature
array {Array} - An array where each item could be an integer or an array of integers.
sum {Number} - The sum of all numbers in the array. Example
[ 1, 2, 3, 4 ] [ [ 1 ], [ 2, 3 ], [ 4 ] ] [ [ 1 ], [ [ 2, 3 ], [ 4 ] ] ]