First Loop will add even numbers to array. Second loop will add odd
numbers to array.