Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
You can use a boolean flag to define certain types of characters seen in the string.
In the end, check if all boolean flags have ended up True, and do not forget to check the "adjacent" and "length" criteria.