how to change the elements in odd positions?

even and odd elements at even and odd positions
odd position meaning
to print the odd index elements in an array
even numbers at even index and odd numbers at odd index