String algorithm

How to find the lexicographically smallest string and has unique characters that satisfies the order given in the form of a string filled with ‘>’ and ‘<’.For example, answer for the string ‘<<<<’ is ‘abcde’ because 'a<b<c<d<e.How to go about it?

Please provide link to the problem.