NVIDIA Interview Question

Implement a state machine that detects modulo 5