AMD Interview Question

How to build a fsm sequence detector