Cisco interview question

Create a pattern matcher using state machines.