General Motors (GM) Interview Question

Parse given coordinates to find the distance