int array[5]={3,3,3,3,1,1};
output: 3 1
I am unable to do this, please help me out. I tried 2 for loops with boolean check , it didn\'t work.