Grice's submission of No Queries No Fun | CodeChef