
You are given a 2D integer array intervals , where intervals[i] = [left _i , right _i ] describes the i ^th interval starting at left _i and ending at right _i (inclusive) . The size of an interval is defined as the number of integers it contains, or more formally right _i - left _i + 1 .
You are also given an integer array queries . The answer to the j ^th query is the size of the smallest interval i such that left _i <= queries[j] <= right _i . If no such interval exists, the answer is -1 .
Return an array containing the answers to the queries .
1 <= intervals.length <= 10 ^51 <= queries.length <= 10 ^5intervals[i].length == 21 <= left _i <= right _i <= 10 ^71 <= queries[j] <= 10 ^7