AMD Interview Question

State machine