Zoox Interview Question

The online tech screen has 2 algorithm problems, the set up is similar to LeetCode.