Amadeus interview question

A math problem involving factorisation.