Write a program to display the duplicate values in anarray.Final submission along with CodeDocumentation & Naming Style Sheet1. Opening Documentation: the header block should include thefollowing:Program name/syntaxDescription of what the program doesSummary of the problems specifications andassumptionsLicense info (optional)References to sources of additional informationusedParametersClass/Program Invariant (ensure these conditions aretrue)Algorithm(s) used (including any specialnotes)Output (any print statements files createdetc.)Return values (does it return anyparameters?)Name of the authors (plus contact info)Creation & modification dates