Description: This program takes an integer array(with duplicates) as input and outputs an integer array(without duplicates). Here we will go through the logic before coding the actual program. So let us consider an integer array InputArray with below mentioned values.