Group points by distance threshold | Nuro Interview Question