• Is there a regular expression solution for this?

Question related to mission Long Non Repeat

 

I tried but failed to find one.

16
J.W