here is the code i am trying to run
for (( i=0; i <($n-1); i++ )) do curr=${ar[$i]}; for (( j=($i+1); j if [ $curr -eq ${ar[$j]} ] then