Nagarro interview question

Count unique characters in string in optimise form