Pre-Algebra Examples

Find the Domain and Range {-1,0}
I am unable to solve this problem.