AMD Interview Question

Draw state diagram