Zoox interview question

Math, problem solving, very easy sql