You have friends numbered to . Each friend gave a present to exactly one other friend. You're given an array where position tells you who friend gave their present to.
Your task: figure out who gave a present to each friend. This problem teaches you array index manipulation. You'll work with two arrays: one showing who each person gave to, and another showing who gave to each person.
The challenge is reversing the relationship using array indices. Before moving forward, think about this: if friend gave to friend , what should position in your answer array contain? That question reveals the solution.