subhashis mollick's submission of Smallest KMP | CodeChef