Write a function in Python language to calculate the average of the numbers in the list above.
2. Write a function to remove duplicate integers from a given integer array of given length. Return a new array with result, do not modify the existing array. Also return the length of the result array.