Koichi Namekata's submission of Curious Queries | CodeChef