Intel Corporation Interview Question

State machine design, sequence detector