LeetCode
First Unique Character in a String
Click
here
for an explanation.