Which one the following relations on A = {1, 2, 3} is a function? f = {(1, 3), (2, 3), (3, 2)}, g = {(1, 2), (1, 3), (3, 1)}.