Texas Instruments Interview Question

Design a Sequence Detector for 1001.