Pls check the code its giving wrong answer
yes
i have maintaine four pointer for the beginning and end of even and odd numbers
kept them separately and lastly merged the pointer oddend with evenstart when odd number end and marked even end as null
oh alright thankyou so much!!