How to check if points lie on a straight line.
Given an array of coordinates, coordinates[i] = [x, y], where [x, y] represents the coordinate of a point. Check if these points make a straight line in the XY plane.
Coordinates contains no duplicate point.