Given an array nums, return the largest product of any non-empty contiguous subarray. The input is JSON {nums}.
Input: JSON {nums}.
Output: Integer — the maximum subarray product.
Input: {"nums":[2,3,-2,4]}
Output: 6
Explanation: [2,3] gives 6.Input: {"nums":[-2,0,-1]}
Output: 0
Explanation: Best is 0.Input: {"nums":[0]}
Output: 0
Explanation: Single element.1<=n<=2*10^4