Infineon Technologies Interview Question

Describe state machine and their types?