Even After Odd (Wrong ans)

Here is my code: https://ide.codingblocks.com/s/211410
One test cases is giving wrong ans can you tell me what is the problem.

you have not handled the cases where there are more than 1 even numbers in the start.
cases like 2 4 3 5 4 2 3 2, check this against your code.

updated code: https://ide.codingblocks.com/s/211682
when you run this code in hackerblocks , it will fail test case1. I checked test case 1 manually and it is wrong in the platform. so dont worry.
please rate and resolve if satisfied.
thanks

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.