Mobileye interview question

"Describe an automaton" and "write a function".