The Hat-Check Problem

Level 3●●●○○ Medium~5 min

Problem

nn people check their hats; the hats are returned in a uniformly random order. What is the expected number of people who get their own hat back? Does it depend on nn?