Domanda di colloquio di Microsoft

How would you find repeated patterns in a string