Nagarro Interview Question

Count unique characters in string in optimise form