I want to get the indices of the similar values of array1 and array2 and store it to the stored_index variable.
array1 = ["50","51","52","53","54","55","56","57","58","59"];
array2 = ["59","55","51"];
The stored index should look like this.
stored_index = [9,5,1]; // index 9,5,1 is equal to their indices in array 1