The algorithm should take a set of names and return a set of pairs of names chosen randomly as follows:
- Each person’s name is put in “a hat”.
- Each person randomly draws a name from a hat, and becomes that person’s Secret Santa (they’ll buy an anonymous gift for that person)
- If a person draws their own name, they draw again.
INPUT:
['adam', 'betty', 'charlie', 'dante']
OUTPUT:
[
['adam', 'dante']
,
['betty', 'charlie'],
['charlie', 'adam'],
['dante', 'betty']
]