Tech-X Interview Question

given a string return first unique id