Please help me out in finding the problem in this rotate image code

@somesh.ps
hello Somesh,
image
here it should be j<N/2