Zoox Interview Question

Both Coding and Math problems.