Identify the domain and range of the function f(x), defined in N, as below:
{1, 2, 3, 4, 5} and {2, 3, 5}
f(x) is defined if 1 ≤ x < 2 or 2 ≤ x < 4 or 4 ≤ x < 6
Domain = {1} ∪ {2, 3} ∪ {4, 5} = {1, 2, 3, 4, 5}
Range = {f(x): x =1, 2, 3, 4, 5} i.e. {2, 3, 5}