Accenture Interview Question

numbers are given array and check whether it is odd or even in the same order how it is in the array