Find 4th degree polynomial that passes through $$(1, 2), (3, 5), (7, 8), (9, 10), (\sqrt2, \sqrt3)$$
I don't want to substitute those points into the polynomial which has $5$ unknowns. My approach was to let the polynomial be $f(x)$, and use the equation $f(x)=x+1$.

Building upon your approach, note that if $f$ is the required quartic polynomial then $f(x)-x-1$ is a quartic polynomial with $1,7$ and $9$ as three of the roots. Hence, $$f(x)=x+1+(x-1)(x-7)(x-9)(ax+b)$$ Now, satisfy the remaining two points and solve to get the values of $a$ and $b$.