Tech-X interview question

given a string return first unique id