I have two vectors P and D. I have written the following code which looks at each element of D and then finds the same element in P (both have same elements just in different order) and returns the index of that element in P. The following code is able to do that. I have two vectors P and D. I have written the