LeetCode

Sum of Even Numbers After Queries

Click here for an explanation.