public static int[][] rotateImage(int[][] image){
		int n=image.length;
		/*The first step*/
		for(int i=0;i<n;i++){
			for(int j=0;j<n/2;j++){
			image[i][j]=image[i][j]+image[i][n-j-1];
			image[i][n-j-1]=image[i][j]-image[i][n-j-1];
			image[i][j]=image[i][j]-image[i][n-j-1];
			}
		}
		/*The second step*/
		for(int i=0;i<n;i++){
			for(int j=0;j<n-i-1;j++){
			image[i][j]=image[i][j]+image[n-j-1][n-i-1];
			image[n-j-1][n-i-1]=image[i][j]-image[n-j-1][n-i-1];
			image[i][j]=image[i][j]-image[n-j-1][n-i-1];
			}
		}
		
		return image;
	}