Minimize the string

CodeChef - MINSTR