Zoox interview question

Both Coding and Math problems.