Goldman Sachs interview question

Given some function find domain and range it exists in.