Cadence Design Systems interview question

Design a FSM of string detector(mealy machine)