Bloomberg Interview Question

Design a "mini" web browser. methods: visit(String url) getHistory() - print the users history. The most recent url appears first and so on while avoiding duplicates clearHistory()