How To Find Lexicographically Smallest String