uniqueChars solution