A synchronous sequential circuit has one input x and one output z. the output is 1 whenever the input sequence is 0110 (e.g., if the input sequence is 000110110, the output sequence would be 000001001). Construct the state diagram for the circuit, and implement it using JK flip-flops as memory elements.