3
vector<vector<string>> displayTable(vector<vector<string>> &orders) {4
vector<vector<string>> ans;6
map<int, map<string, int>> m;8
set<string> s; // Sets are useful as they dont contain duplicates as well9
// arranges the strings in order.11
for (auto row : orders)16
m[stoi(row[1])][row[2]]++;21
dem.push_back("Table");28
} // For the first row only37
row.push_back(to_string(it.first));39
auto dummy = it.second;41
for (auto st : s) // we use set here as it has food names stored in asc order.44
row.push_back(to_string(dummy[st])); // we access the number of orders.