Sponsored
Use these hints if you're stuck. Try solving on your own first.
If there're only 2 points, return true.
Check if all other points lie on the line defined by the first 2 points.
Use cross product to check collinearity.
Solve with full IDE support and test cases