Zoox Interview Question

Math, problem solving, very easy sql