#include <vector>class Solution {public: vector<vector<int> > rotateMatrix(vector<vector<int> > mat, int n) { // write code here for(int i = 0; i < n; i++){ fo...