You are given two arrays of positive integers, arr1 and arr2.
A prefix of a positive integer is an integer formed by one or more of its digits, starting from its leftmost digit. For example, 123 is a prefix of 12345, while 234 is not.
A common prefix of two integers a and b is an integer c that is a prefix of both a and b. For example, 5655359 and 56554 have common prefixes 565 and 5655, while 1223 and 43456 have none.
Find the length of the longest common prefix among all pairs (x, y) with x from arr1 and y from arr2.
Return the length of the longest common prefix among all pairs. If no common prefix exists among them, return 0.