Viridien interview question

Math questions.