I recently faced this interview question and could not give a satisfactory answer. Wondering how to approach this question. The interviewer was looking for a linear time solution it seems. Basically, if we have two arrays for example:

```
A = [10,9,8,7]
B = [1,2,3,4]
```

The maximum difference above would be `(10-2)=8`

and not `(10-1)=9`

because 10 and 1 are from the same index.