AIonSi interview question

Write RTL code for mod9 counter?