Teneo interview question

typical case with focus on maths