The cubic polynomial $y(x)$ which takes the following values: $y(0)=1, y(1)=0, y(2)=1$ and $y(3)=10$ is

Ans D)

y(x)=x^{3}-2x^{2}+1

Now, putting x=0 we get y(x)=0-0+1=1

Similarly x=1 we get y(x)=0

x=2 then y=1

x=3 then y=10