Can someone tell which case am I missing?
Its giving WA
you did the same mistake as i did , on line 16 you considered x2 >= x1 and x2 <= x3 but what if i say to you that x1 > x3 then in this case it will give WA.
what you can do is take the min and max points.
x2 >= min(x1, x2) and so forth.
Actually I have considered that condition
The condition before|| will work for x3>x1
and the condition after || will work for x1>x3