I'm not sure how to start with this one...Thanks for the help!
There are 6! functions that take S to itself, as a permutation. Since we are looking for functions such that f(f(x)) = x, we must divide by 2, to get 6!/2 = 360.