Mark Elements on Array by Performing Queries (LeetCode)Apply queries on an array to mark elements and calculate the sum of unmarked elements.