Andrey Kim's submission of Easy Queries | CodeChef