c++ F**cing solution
Intuition\n Describe your first thoughts on how to solve this problem. \n\n# Approach\n Describe your approach to solving the problem. \n\n# Complexity\n- Time 
# Intuition\n<!-- Describe your first thoughts on how to solve this problem. -->\n\n# Approach\n<!-- Describe your approach to solving the problem. -->\n\n# Complexity\n- Time complexity:\n<!-- Add your time complexity here, e.g. $$O(n)$$ -->\n\n- Space complexity:\n<!-- Add your space complexity here, e.g. $$O(n)$$ -->\n\n# Code\n```\nclass Solution {\npublic:\n    vector<vector<int>> spiralMatrixIII(int rows, int cols, int rStart, int cStart) {\n        \n        vector<vector<int>> ans(rows* cols, vector<int>(2));\n        int i=0;\n        ans[i++]={rStart,cStart};\n        int len=0;\n        int d=0;\n        int direction[]={0,1,0,-1,0};\n        while(i<rows*cols){\n            if(d==0 ||d==2){\n                len++;\n            }\n            for(int k=0;k<len;k++){\n                rStart+=direction[d];\n                cStart+=direction[d+1];\n               if(rStart<rows && rStart>=0&& cStart<cols && cStart>=0 ){\n                    ans[i++]={rStart,cStart};\n            \n                } \n            }\n         d=++d%4;   \n        }\n        return ans;\n    }\n};\n```
['C++']