Identify the domain and range for the given relation. Indicate whether the relation is a function or not andexplain

Given :
Domain is:
[tex]D\colon\mleft\lbrace0,-1,1\mright\rbrace[/tex]Range is:
[tex]R\colon\mleft\lbrace0,1,2\mright\rbrace[/tex]Here is one output for one input.