Teneo Interview Question

typical case with focus on maths