title: How to find a duplicate adjacent pair in an array
body: <p>I am looking to write a simple and easy method that will allow me to find a pair of duplicates in an array and display the index number of which the pair would exist.</p>
  
  <p>So far I only have the Method Header to work with and an example of output</p>
  
  <pre><code>int Duplicates (int[] testArray){
  
  int[] testArray = {1,5,6,8,9,4,4,6,3,2};
  }
  </code></pre>
  
  <p>the only thing I would like to be returned is the index location of the adjacent pair, i.e 5 in this case which would be (4,4). If there are no adjacent pairs I would also like to be able to print "no duplicate pairs found"</p>
  
  <p>can anyone help me get started as I have no idea how one would even start to work on something like this.</p>