Arrange odd even linked list

My code has passed the sample output perfectly but it’s not clearing the test cases