like first if we solve the given array we get
1 1 1 2 3 3 3
then we write code like
sort(arr ,arr+n);
int i=0;
while( i<n)
{
if(arr[i]==arr[i+1]==arr[i+2])
{
i=i+3;
}
else
{
cout<<a[i];
break;
}
}
what is wrong in it please answer this this doubt it create confusion