Viridien interview question

geometric sequence