Karthik's submission of W String | CodeChef