Bloomberg interview question

Basic unique char in string leetcode