The simplest way is ask user from number of degree(n).
and ask coefficient of each term.


Deg of polynomial: 2
coefficient of x^2 : 1
coefficient of x^1 : -4
coeficient of x^0 : 2