Advanced geometry convex hull

Advanced geometry convex hull

Hey ! Please check out your question “pairs on Line” .
Also this is my code which gives answer: 4 for the sample testcase.

https://ide.geeksforgeeks.org/Rdk8nOqQ6k

Please solve above stated doubt.

I think the sample testcase answer itself is wrong