I was doing a small algorithmic problem. There are two arrays, arr1 and arr2. arr1 contains some random integers and arr2 contains integers which contains indexes of arr1 random