Define the transitive closure of a relation.
Let A={1,2,3} and R={(1,2),(2,3),(3,1)}.
Find the transitive closure of R using Warshall's algorithm