Discussion About Even-After-Odd

This is Discussion thread about Even-After-Odd

1 test case is coming wrong what is the error?

https://hack.codingblocks.com/app/contests/987/p/315