Write a program which can minimize the duplicates value of an array..
You have to minimize code not array ..
a=['a67', 'b68', 'j24', 'k25', 'a67', 'b68' ,'a67', 'b68', 'j24', 'k25', 'a67', 'b68'];
needs to return
If the array contains [1, 2, 1, 2, 3]
Do a loop that reads every element
Do a second loop inside first one to check if there is any duplicate value and store it into any temporary array which prints all its values when an iteration of first ends and gets empty when new iteration of first loop start.
Don't forget to do something that checks whether you have already printed the index of value