domain and range of a function problems with solutions