Proxelera interview question

write fsm for the 1010 sequence detector.