Question d’entretien chez Intel Corporation

Design a FSM for given question.