I want to rotate an matrix by 90 degrees in place represented in the form of 1D vector.
When it is 2D, this is what I did
void rotate(vector