Help me in solving ODDSPLIT problem

My issue

My code

# cook your dish here

Problem Link: ODDSPLIT Problem - CodeChef