Texas Instruments interview question

Design a Sequence Detector for 1001.