Groovy Web interview question

fully mathematics and coding questions.