Write a polynomial from its roots