Ivan's submission of Count Good Prefixes | CodeChef