title: Best way to return the first repeated element of array
body: <p>This is an interview question:</p>
  
  <p><strong>What is the best way to return the first repeated element out of the array of integers?</strong></p>
  
  <p>Example:</p>
  
  <p>Given an array <code>[12, 46, 244, 0, 12, 83, 48, 98, 233, 83, 26, 91, 119, 148, 98]</code>.</p>
  
  <p>The return value in this case is <code>12</code>.</p>
  
  <p>How can this be done?</p>