Answer :
We have the following:
The domain is the input values or the values of x and the range is the output values or the values of y
Therefore:
[tex]\begin{gathered} D=\mleft\lbrace{}1,2,3,4,5\mright\rbrace \\ R=\mleft\lbrace0\mright\rbrace \end{gathered}[/tex]