Microsoft Interview Question

Q: given a 2D array check if 3 points are colinear