Simple python solution.
\nclass FrontMiddleBackQueue:\n\n    def __init__(self):\n        self.arr = []\n        \n\n    def pushFront(self, val: int) -> None:\n        self.arr.insert
```\nclass FrontMiddleBackQueue:\n\n    def __init__(self):\n        self.arr = []\n        \n\n    def pushFront(self, val: int) -> None:\n        self.arr.insert(0, val)\n\n    def pushMiddle(self, val: int) -> None:\n        pos = len(self.arr)\n        self.arr.insert(pos//2, val)\n\n    def pushBack(self, val: int) -> None:\n        self.arr.append(val)\n\n    def popFront(self) -> int:\n        if (len(self.arr)):\n            return self.arr.pop(0)\n        else:\n            return -1\n        \n\n    def popMiddle(self) -> int:\n        if (len(self.arr)):\n            pos = len(self.arr) -1\n            return self.arr.pop(pos//2)\n        else:\n            return -1\n     \n    def popBack(self) -> int:\n        if (len(self.arr)):\n            return self.arr.pop()\n        else:\n            return -1\n```
[]