Code to find the interpolating polynomial using Lagrange method