Valid Boomerang

Given three points represented by the six numbers [x1, y1, x2, y2, x3, y3], return 1 when the points are pairwise distinct and not collinear, and return 0 otherwise.

Examples
Input: [4,3,-10,-1,3,-2]
Output: 1
Hints

Valid Boomerang

Given three points represented by the six numbers `[x1, y1, x2, y2, x3, y3]`, return `1` when the points are pairwise distinct and not collinear, and return `0` otherwise.