Even-After-Odd problem

https://ide.codingblocks.com/s/62190
getting runerror in 2 testcases
what is going wrong?

Hey vishesh, you have not consides the case when all the numbers are odd, your code gives runtime error when all numbers are odd in the list