See here for basic rules on problem.
Problem #7
Make an optimal machine that accepts sequences of integer digits 1-4 such that each triplet contains three different numbers. Accepted examples; 123124234, 231123. Rejected example; 122341
You do not need a route for failed sequences.