Formation of Quadratic equation from roots