f. Show a state table or a state diagram for either a Mealy (6 states) or a Moore (7 states) system with one input, x, and one output, z, such that z = 1 if and only if the input has been exactly one or two 1’s followed immediately by exactly one or two 0’s.