Bear and House Queries | CodeChef