prashant's submission of Valid String | CodeChef