C++||Set||Map||Easy to Understand
```\nclass Solution {\npublic:\n    vector> displayTable(vector>& orders) \n    {\n        vector> res;\n        vector> table(501);\n        set food;\n       
```\nclass Solution {\npublic:\n    vector<vector<string>> displayTable(vector<vector<string>>& orders) \n    {\n        vector<vector<string>> res;\n        vector<unordered_map<string,int>> table(501);\n        set<string> food;\n        for(auto &w:orders)\n        {\n            food.insert(w[2]);\n            table[stoi(w[1])][w[2]]++;\n        }\n        for(int i=0;i<=500;i++)\n        {\n            if(i>0&&table[i].empty())\n                continue;\n            vector<string> v;\n            v.push_back(i==0?"Table":to_string(i));\n            for(auto it=begin(food);it!=end(food);it++)\n            {\n                v.push_back(i==0?*it:to_string(table[i][*it]));\n            }\n            res.push_back(v);\n        }\n        return res;\n    }\n\t//if you like the solution plz upvote\n};\n//if you like the solution plz upvote
['C', 'Ordered Set']