Infineon Technologies interview question

Describe state machine and their types?