Pony.ai Interview Question

One of the LeetCode questions