interview encountered such a question, there is a string, "12345678abcABCDefghijk9874321YXWV321", now define the same type of characters (numbers for one type, uppercase letters for one type, lowercase letters for one type) for 4 or more consecutive, need to find out the number of consecutive (including sequential and reverse continuous), I would like to ask you how to solve this? Thank you.