Pregunta de entrevista de AffirmedNetworks

How would you design a FSM in C++?