Even to the left and odd to the right.

Program to accept an array of integers and shift the odd elements to the right and even elements to the left