Evgeniy Sluzhaev's submission of W String | CodeChef