1385 find the distance value between two arrays