A group of Facebook employees just had a very successful product launch. To
celebrate, they have decided to go wine tasting. At the vineyard, they decide
to play a game. One person is given some glasses of wine, each containing a
different wine. Every glass of wine is labelled to indicate the kind of wine
the glass contains. After tasting each of the wines, the labelled glasses are
removed and the same person is given glasses containing the same wines, but
unlabelled. The person then needs to determine which of the unlabelled glasses
contains which wine. Sadly, nobody in the group can tell wines apart, so they
just guess randomly. They will always guess a different type of wine for each
glass. If they get enough right, they win the game. You must find the number
of ways that the person can win, modulo 1051962371.