UVa problem: Soundex - 1d Array manipulation