Varonis Systems Interview Question

Implement generic state machine in pseudo code