Help needed in THREEPTS Problem from Starters 8 (15 Aug 2021)

Question
https://www.codechef.com/START8C/problems/THREEPTS/
My submission
https://www.codechef.com/viewsolution/49868468
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
if(((x2>=x1)&&(x3>=x2))||((x2<=x1)&&(x3<=x2)))
The condition before|| will work for x3>x1
and the condition after || will work for x1>x3