Four students fall asleep during class and, while asleep, the professor rearranges their notebooks so that when they wake up, nobody has his or her own notebook. In how many ways could the professor have rearranged the notebooks?

This has been answered already. Look for a recent post of the same question, with explanations by drwls and bobpursley.