Analog Devices Interview Question

A state machine question for complex input signal.