Viridien interview question

2 math questions