title: move all even numbers on the first half and odd numbers to the second half in an integer array
body: <p>I had an interview question which i could not solve. </p>
  
  <p>Write method (not a program) in Java Programming Language that will move all even numbers on the first half and odd numbers to the second half in an integer array. </p>
  
  <p>E.g. Input = {3,8,12,5,9,21,6,10}; Output = {12,8,6,10,3,5,9,21}.</p>
  
  <p>The method should take integer array as parameter and move items in the same array (do not create another array). The numbers may be in different order than original array. This is algorithm test, so try to give as efficient algorithm as you can (possibly linear O(n) algorithm). Avoid using built in functions/API. *</p>
  
  <p>Also some basic intro to what is data structure efficiency</p>