Py3 Easy Sol: 1 Stack only, faster than 90%
\nclass BrowserHistory:\n\n    def __init__(self, homepage: str):\n        self.history = [homepage]\n        self.index = 0\n\n\n    def visit(self, url: str) 
```\nclass BrowserHistory:\n\n    def __init__(self, homepage: str):\n        self.history = [homepage]\n        self.index = 0\n\n\n    def visit(self, url: str) -> None:\n        while len(self.history) > self.index + 1:\n            self.history.pop()\n        self.history.append(url)\n        self.index += 1\n\n\n    def back(self, steps: int) -> str:\n        self.index = max(0, self.index - steps)\n        return self.history[self.index]\n\n\n    def forward(self, steps: int) -> str:\n        self.index = min(len(self.history)-1, self.index + steps)\n        return self.index\n```
['Stack', 'Python', 'Python3']