Sort String and Subsets Sum