Run error in all TEST Cases
if(n1>n2) {
int d = n1-n2;
while(d>0) {
l1 = l1.next;
}
} else if(n1>n2) {
int d = n1-n2;
while(d>0) {
l1 = l1.next;
}
}
You have written the same condition twice, hence the error. Please correct it.