Design a browser history (visit / back / forward) - coding test problem similar to LeetCode Design Browser History.
Asked in the Online coding test stage. Reported as 'similar to Browser History Design'.
Implement browser_history(homepage, operations). Each operation is either ["visit", url], ["back", steps], or ["forward", steps]. Return an array containing the current URL after every operation. A visit discards all forward history.
def browser_history(homepage, operations):