Small logic challenge to determine if a string has all unique characters