title: Write a method that will return a list of all #s in the matrix that repeat. Numbers should be placed in the list once it is determined they repeat
body: <p>Sample Cases</p>
  
  <p>go( [ 1, 2, 3, 0 ] , [ 1, 0, 0, 1, 1 ] )  should return [1, 0]</p>
  
  <p>go( [ 1, 2, 3, 0 ] , [ 0, 1, 0, 1, 1 ] )  should return [0, 1]</p>
  
  <p>go( [ 4, 15, 1 ] , [ 73, 2 ] ) should return []</p>
  
  <p>go( [ 7, 7, 7 ], [ -12, 30 ] , [ 0 ] )  should return [7]</p>
  
  <p>My Code:`</p>
  
  <pre><code>List&lt;Integer&gt; go( int[][] mat ) 
  {
      List&lt;Integer&gt; list = new ArrayList&lt;Integer&gt;();
      for(int i = 0; i &lt; mat.length; i++)
      {
        for(int j = 0; j &lt; mat[i].length; j++)
        {
          if(mat[i][j] == mat[i + 1][j + 1])
          {
            list.add(mat[i][j]);
          }
        }
      }
      return list;
  }`
  </code></pre>
  
  <p>Idk how to do this, that was my attempt im getting out of bounds errors</p>