NVIDIA interview question

Describe how you would program a longitudinal/lateral controller for an autonomous car.