Vanya and Triangles

Given n distinct points on the plane, connect every pair. Return the number of triples of points that form a non-degenerate triangle. A triple is degenerate exactly when its three points are collinear.

Examples
Input: [1,2,3]
Output: 0
Hints

Vanya and Triangles

Given `n` distinct points on the plane, connect every pair. Return the number of triples of points that form a non-degenerate triangle. A triple is degenerate exactly when its three points are collinear.