Python Very Fast Solution
\nclass Solution:\n    def displayTable(self, orders: List[List[str]]) -> List[List[str]]:\n        foods = sorted(set(x[2] for x in orders))\n        tables = 
```\nclass Solution:\n    def displayTable(self, orders: List[List[str]]) -> List[List[str]]:\n        foods = sorted(set(x[2] for x in orders))\n        tables = sorted((set(x[1] for x in orders)), key=int)\n        table_food = {}\n        for _, t, f in orders:\n            if t not in table_food:\n                table_food[t] = {f: 1}\n            else:\n                if f in table_food[t]:\n                    table_food[t][f] += 1\n                else:\n                    table_food[t][f] = 1\n        \n        output = [[\'Table\', *foods]]\n        for t in tables:\n            output.append([\n                t,\n                *[str(table_food[t][f]) if f in table_food[t] else \'0\' for f in foods]\n            ])\n            \n        return output\n```
[]