Implement `firstUnique(str)` that returns the index of the first character in `str` that appears only once. Return `-1` if none exists.
Run your code to see results.