Rotate image NXN

how to solve this,i am not getting the clue

Hey Shubham, a video is there “Interview Problem - Image Rotation” in which approach is explained to solve this problem, i would suggest you to watch that video first if still you will not be able to understand the approach for this problem, please do reply to this thread I will help you out.

i didnt get where is the video in my course, i am algo++ student

Search in “search content” bar given on navbar.