Coding problem #45: Create a functionality to calculate the sum of many of the numbers inside a jagged array (array contains numbers or other arrays of quantities on a limiteless amount of ranges)Intricate concerns like general performance optimization, security and layout styles need to be utilized