I have the following polynomial which is -x^3+5x^2-14x+16 and i am trying to reduce it, each time i try i dont get the right answer.

I have reduced it on a internet calculator and the answer comes to x^3+5x^2-2x+8 could some one show me how this answer is found.

thanks