Providence Interview Question

Find the shortest distance between two points from a provided array of 2D coordinates.