Waymo interview question

write some code to solve a proximity based problem