The variable odd is counting how many odd numbers there are. Why are you including this count in the sum?

arr = {2,4,5,3} The sum of odd numbers is 5 + 3 = 8
Your algorithm:
2 is even, ignore
4...