how can i run over a 2d array perimeter and check if there is a number that repet itself?
int matrix[N][N]={ {4,2,1,3,7}, {29,7,1,17,13