
You are given two 0-indexed integer arrays nums1 and nums2 , each of length n , and a 1-indexed 2D array queries where queries[i] = [x _i , y _i ] .
For the i ^th query, find the maximum value of nums1[j] + nums2[j] among all indices j (0 <= j < n) , where nums1[j] >= x _i and nums2[j] >= y _i , or -1 if there is no j satisfying the constraints.
Return an array answer where answer[i] is the answer to the i ^th query.
nums1.length == nums2.lengthn == nums1.length1 <= n <= 10 ^51 <= nums1[i], nums2[i] <= 10 ^91 <= queries.length <= 10 ^5queries[i].length == 2x _i == queries[i][1]y _i == queries[i][2]1 <= x _i , y _i <= 10 ^9