Given two arrays of integers of the same length, return the first index where their elements are the same. If they are never the same, return -1.