Write code which determines if 2 arrays of Points (x, y), in a two-dimensional coordinate system, could likely represent a “pinching” motion made famous by the iPhone. Consider the Points to represent a series of touch-coordinates by a user.
Bonus: Make it so that the code works for either as a pinch or a pinch-to-expand.