Learned to find unique characters in a string using several approaches