I mean just the general idea. I don't pretend anyone to make the work for me.

I need to show a sequence of numbers not in order. Example: 04120.

I have been looking all over google but the examples are for numbers in order.

I know I need to make a state table, but I put the numbers in the order I want to appear to fill the table or as 0123456789?

Any advice? Thanks!