# In C++, write a method called findDifference that returns the position of the first corresponding elements of two arrays that are not equal.

# Question

`int findDifference(const string a1[], int n1, const string a2[], int n2);`

Return the position of the first corresponding elements of `a1`

and `a2`

that are not equal. `n1`

is the number of interesting elements in `a1`

, and `n2`

is the number of interesting elements in `a2`

. If the arrays are equal up to the point where one or both runs out, return whichever value of `n1`

…