aakash mittal's submission of Nasty Queries | CodeChef