Not passing 2 test cases of even after odd problem in linked list

@manmeetkahlon hey the way you are separating the elements it will cause them to be re-arranged.
To solve this question, you can create two linked list one even , other odd, append even elements to even and odd elements to odd,finally join even odd, this way relative ordering will remain same.
If this resolves your doubt mark it as resolved.