Let A= {a, b, c, d} and f :A→A be given by f = {(a,b), (b,d), (c,a), (d,c)}, write f^-1.