Rotate Image (90 Degrees Clockwise) in C++

Rotate Image in C++ (LeetCode 48: Rotate Image) is a classic 2D matrix transformation problem frequently featured in technical interviews at top tier technology companies such as Google, Amazon, Microsoft, Apple, Meta, and Bloomberg. You are given an N × N 2D matrix representing an image where each cell represents a pixel. The objective is …