Given an array of integers, find the sum of the minimums of every contiguous subarray of the array. Return the sum modulo 1,000,000,007.
Click Run to execute sample tests.