Red Ventures interview question

Math problems