Intel Corporation Interview Question

mod 5 counter