Create an array of size 15, get input from the user in the form of only positive integers. You have to find that if array has any duplicate value or not, if it has a duplicate value, count how many times that value is there; then ask the user to enter a value to be placed there. Check this value should not be available in array, otherwise again ask the user to enter value.