Minimum swaps to make two arrays consisting unique elements identical
Given two arrays a[] and b[] of the same length, containing the same values but in different orders (with no duplicates).The task is to make b[] identical to a[] using the minimum number of swaps.Examples: Input: a[] = [3, 6, 4, 8], b[] = [4, 6, 8, 3]Output: 2Explanation: To make b[] identical to a[