apple pie's submission of Sort the String | CodeChef