Ankur Kayal's submission of K - Magical String | CodeChef