Why not multiply each value by its least-significant bit (aka that number in modulo 2), so that even numbers are zero and odd numbers stay what they are, then use max() to return the largest number (which has to be odd because all the evens were multiplied by zero)
**Note, assuming no negative-numbers, if there are than just use max but strip all "0" from your array.