Solve the following problem:
Realize a sequential machine whose output Z takes the value 1 when the input sequence x consists of two consecutive values 1 followed by two values 0, or two values 0 followed by two values 1. In other cases, the output is Z = 0. For the realization use JK-flip-flops and (2 × 1) multiplexers.
Make sure you use enough details to support your answer.