It's time for a little exercise! You just got employed by Tesla, and you need to solve a problem for their self driving car:

https://repl.it/@aneagoie/tesla

You can find the solution to the problem here: