Remember that
A function is one-to-one if every element of the range corresponds to exactly one element of the domain
so
Verify
In this problem
we have that
every element of the range corresponds to exactly one element of the domain
therefore
The function is one to one
answer is YES