You can never set the highest derivative as a boundary condition in an ODE. The highest derivative is always set by your equations. You can, however, solve for the correct boundary condition to get your answer:
The boundary condition that will give you y’'[10]==1 can be found:
Got it. Thank you. I was able to solve it in MATLAB via finite differences with a second order boundary condition and did not know Mathematica NDSolve does not take it as a boundary condition.