Check if points are collinear

Given at least three points encoded as [x1,y1,x2,y2,...], return 1 if every point lies on the line through the first two points, otherwise return 0.

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

Check if points are collinear

Given at least three points encoded as `[x1,y1,x2,y2,...]`, return `1` if every point lies on the line through the first two points, otherwise return `0`.