Determine Whether Queries Can Zero Array | Uber Coding Question