Given a circular array nums (the end wraps to the beginning), return the largest sum of any non-empty subarray, where a subarray may wrap around but uses each element at most once. The input is JSON {nums}.
Input: JSON {nums}.
Output: Integer — the maximum circular subarray sum.
Input: {"nums":[1,-2,3,-2]}
Output: 3
Explanation: [3] alone.Input: {"nums":[5,-3,5]}
Output: 10
Explanation: Wraps around: 5 + 5.Input: {"nums":[-3,-2,-3]}
Output: -2
Explanation: All negative; take the largest.1<=n<=3*10^4