If f(x) is a polynomial of degree 4 such that f(0) = f(1) = f(2) = f(3) = 1 and f(4) = 2, then determine f(5).
f(5) = 18.