760. Find Anagram Mappings

Given two arrays A and B, where B is an anagram of A, return an index mapping P such that for every i, A[i] = B[P[i]]. When values repeat, any index in B containing the requested value is valid for that position.

Examples
Input: [[0],[0]]
Output: [0]
Hints
Related Problems

760. Find Anagram Mappings

Given two arrays `A` and `B`, where `B` is an anagram of `A`, return an index mapping `P` such that for every `i`, `A[i] = B[P[i]]`. When values repeat, any index in `B` containing the requested value is valid for that position.