NVIDIA Interview Question

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