title: Finding repetitions in a string
body: <p>For two days I have been researching for this and have not found anything so I decided to write my own string repetition detector. Basically the function</p>
  
  <pre><code>def findRepetitions (string):
  </code></pre>
  
  <p>would receive a string and search for any repetitions; returns a list of strings reduced to their simplest form.</p>
  
  <p>For a sample, it'd be:</p>
  
  <pre><code>findRepetitions ("trololololo") --&gt; ["olo"]
  findRepetitions ("bookkeeper") ---&gt; ["o", "k", "e"]
  findRepetitions ("Hello, Molly") -&gt; ["l", "l"]
  findRepetitions ("abcdefgh") -----&gt; []
  findRepetitions ("102102102") ----&gt; ["102"]
  </code></pre>
  
  <p>In the third example, the function returns ["l", "l"] instead of ["ll"], because I want to search for repetitions only in the neighboring characters.</p>
  
  <p>I know that this may be hard, but I've been literally thinking over this for a long time and cannot find any smart solution to this.</p>