Given an array nums, the task is to compute the running sum of the array where runningSum[i] is the sum of elements from nums[0] to nums[i]. Return the resulting running sum array.
Click Run to execute sample tests.