compare the Array List approach with the alternative solution, evaluate which one is more effective, and explain why.

Revise this code example C for Finding the duplicates and follow the discussion question below. Apart from code, the writing part is just 150 words //function to display the duplicate values in an Array public void DisplayArray(ArrayList ary) {   //loop through all the element  for (int i = 0; i < ary.Count; i++) Console.Write(ary[i]+” “); […]