Hi Matt,
I meant that the codomain is {0,1,2}, so the range can be the same or it can be any subset of that.
Your example with f(0)=0, f(1)=1 and f(2)=1 does count as one of the functions that is allowed.
Clearly I didn't formulate the question accurately enough  thanks for asking about it!
