Microsoft interview question

Programmatically add two polynomials.