Question 3: Solving Polynomial Equations using…