Mark Elements on Array by Performing Queries

Mark Elements on Array by Performing Queries - Coding Problem | K5kC