Aquis Exchange interview question

A mathematics and a coding question