General Motors (GM) Interview Question

Distance of two points given a string of numbers.