title: Algorithms find the most frequently occurring sequence of strings of length 3
body: <p>"Given multiple name arrays, find the most frequently occurring sequence of names of length 3(sequence of length 3), if it exists"</p>
  
  <p>Eg:
  Given 3 name arrays:</p>
  
  <pre><code>Ana John Maria
  Paul
  Sharon Ana John Maria Tiffany Ted
  </code></pre>
  
  <p>The output will be <code>Ana John Maria</code> since this sequence is encountered twice, in the first and the 3rd array.</p>
  
  <p>i can't seem to find a correct solution for this. </p>
  
  <p>Can anyone point me in the right direction? Maybe it's a well known algorihm for this. Can anyone give me a link?
  Thanks</p>