Viridien interview question

sequence question