Dandy (NY) Interview Question

compute distance between two shapes.