Max's submission of GOOD PREFIXES | CodeChef