Check if array elements are odd or even