Let and be defined as and . Then, is:
.
If , .
If (i.e., ), .
If (i.e., ), .
If , .
Since , (using the case of ).
The function values are always . Therefore, it can never reach negative values in the codomain . It is not onto.
Check values: . Also, for covers . The function is not monotonic and repeats values.
Result: B (neither one-one nor onto).
Tagged Composite functions. Machine-assigned, so read it as a strong shortlist rather than a verdict.