Given two integer arrays, for each integer in array1 the closest integer in array2 is its 'sensor' and the difference is the 'sensor distance'; return the largest sensor distance.
Asked in the phone screen stage. Implement max_sensor_distance(array1, array2), returning an integer. Both arrays are non-empty, and distance means absolute difference.
def max_sensor_distance(array1, array2):