Write a method that reads three int arrays as input from a text file and returns an int array whereeach element is the product of the corresponding elements of the three input arrays. Display thison the screen AND save it to a text file called ArrayProduct.txt.
You cannot assume that the three arrays are the same length; the method has to check for thatcondition. If the three arrays are not the same length, the return value should be a single elementint array with the value of -1.