Jeffrey Jiang's submission of Good Prefix | CodeChef