firstUniqueCharacter interview solution.