If there is no non-empty subarray with sum at least K, return -1.
A defanged IP address replaces every period "." with "[.]".
Input: A = [1], K = 1 Output: 1
Input: A = [1,2], K = 4 Output: -1
Input: A = [2,-1,2], K = 3 Output: 3
- -1 <= A.length <= 50000
- -10 ^ 5 <= A[i] <= 10 ^ 5
- 1 <= K <= 10 ^ 9