AMD interview question

Mesi Moore and mealy Coding