Hazel Mobile interview question

State transition