Enumerate All Possible Strings Over Alphabet
Consider a string over&nbsp;$\Sigma$ to be a number written in base $|\Sigma|$ and implement a counter. Remember to include leading "zeroes": first generate all the length-1 strings, then all the length-2 ones, and so on.