(Design Process) Implement the following finite state machine description using a minimum number of states and a good state assignment. The machine has a single input X, a single output Z, and will assert Z = 1 for every input sequence ending in the string 0010 or 100.