Oracle interview question

Given an array [1,2,3,4,5,6,7] Write a code to construct [ 1,3,5,7,6,4,2] Using the same array