Why is test case 3 giving run error ?
Even-After-Odd Problem
You code is failing when there is no even node.
Dry run and check with this case:
4
1 3 3 1
Thanks for helping… 
Why is test case 3 giving run error ?
You code is failing when there is no even node.
Dry run and check with this case:
4
1 3 3 1
Thanks for helping… 