Given an integer array of size N, there will be Q operations given containing a range [L, R] both inclusive such that L and R are valid indices and L <= R. For each query, you have to choose 1 subset
of indices in range [L, R] and subtract 1 from array values at selected indices in subset.
An array is called Zero Array if A[i] = 0 for all 0 <= i <= N-1 after Q operations. Implement a function to check whether it is possible to make the given array a Zero Array after performing given Q operations.