Samsung Electronics Interview Question

Design a state machine for detection of three 3bit packets.