Today let’s go over finding the smallest difference between two numbers in two seperate arrays. In order to solve this problem we must find a pair of numbers whose absolute difference is closest to zero. This function should return an array containing these two numbers. It is assumed that there…