title: Algorithm - Find existence of a 2d array in another 2d array
body: <p>I came across this question while in an interview and i am unable to find the best way to do it.</p>
  
  <p>The question says, there are two 2d arrays, one is bigger than the other.
  Lets say,</p>
  
  <pre><code>Array_1 = [[1,2],
             [5,6]]
  </code></pre>
  
  <p>and </p>
  
  <pre><code>Array_2 = [[1,2,3,4],
             [5,6,7,8], 
             [9,10,11,12]]
  </code></pre>
  
  <p>Since, here the Array 2 contains Array 1, the algo should return true. Otherwise, false.</p>
  
  <p>The size of the array can be anything.</p>