Design a (normal) DFA that accepts strings, over {$0,1$}, that ends with $111$.
Now Look at DFA, $q_3$ is a state where we get a sequence in which no of $1's$ is multiple of $3$. so whenever we reach $q_3$ we get output $1$.
We can design Mealy machine for it , by getting output $1$ on the incoming edges on state $q_3$, and output $0$ at all others.
Or, We can design Moore machine, by putting output $1$ on the state $q_3$ and output $0$ on others.