Number Of Valid Subarrays
Given an array nums of integers, return the number of non-empty continuous subarrays that satisfy the following condition: The leftmost element of the subarray is not larger than other elements in the subarray.
1. 1 <= nums.length <= 50000 2. 0 <= nums[i] <= 100000
Input is managed for you
Output is managed for you
5 1 4 2 5 3