Python Easy Solution
\nclass BrowserHistory:\n\n    def __init__(self, homepage: str):\n        self.back_stack = []\n        self.fw_stack = []\n        self.back_stack.append(home
```\nclass BrowserHistory:\n\n    def __init__(self, homepage: str):\n        self.back_stack = []\n        self.fw_stack = []\n        self.back_stack.append(homepage)\n        \n    def visit(self, url: str) -> None:\n        self.back_stack.append(url)\n        self.fw_stack = []\n        \n    def back(self, steps: int) -> str:\n        while steps != 0:\n            len_back = len(self.back_stack)\n            if len_back > 0 and len_back != 1:\n                temp = self.back_stack.pop(-1)\n                self.fw_stack.append(temp)\n            steps = steps - 1\n        return self.back_stack[-1]\n        \n    def forward(self, steps: int) -> str:\n        while steps != 0:\n            if len(self.fw_stack) > 0:\n                temp = self.fw_stack.pop(-1)\n                self.back_stack.append(temp)\n            steps = steps - 1\n        return self.back_stack[-1]\n\t\t\n```
['Python']