Let f: A to A, where A = 1,2,3,4,5,6,7. The number of onto functions such that f(f(f(x))) = x for all x in A is:
a) 21
b) 120
c) 42
d) 5040