class Solution { public int[] anagramMappings(int[] A, int[] B) { int [] result = new int[A.length]; HashMap map = new HashMap<>(); for(int i=0; i