Write a program that contrains a method that receives an array and returns a new array with no duplicates. The header of the method is as follows:
public static int[] removeDuplicate(int []x)
for example, if x is {1,3,1,2,3,5}
removeDuplicate(x) returns a new array {1,3,2,5}
and public static int[] removeDuplicate(int[] x) for compute the area