First Common Element in Two Arrays

If I have two arrays, what is the fastest time complexity to find the first common element in both arrays (in this case G)

arr1 = [E, F, G, H]
arr2 = [D, G, H]
Comments (0)