Amadeus Interview Question

A math problem involving factorisation.