Problem 10 (Sorting Letters of a String)