Let

Using a graph tool
case a)

see the attached figure N

The polynomial is not the solution
case b)

see the attached figure N

The polynomial is not the solution
case c)

see the attached figure N

The polynomial is not the solution
case d)

see the attached figure N

The polynomial pass through all the points
therefore
the answer is the polynomial
d)
