Ordering Strings of Varying Length Lexicographically

Solution to Rosalind Problem 039: Ordering Strings of Varying Length
Lexicographically