Try the same model with your own values. No checks, nothing recorded.
Back to Which tool for which problem
Two tools from this tutorial: a count map with a second pass, and a heap of size k. Try your own strings and lists, change k, or write a third function for a cue from the table, such as the first repeated value with a hash set. Reset brings the starter back.
Python runs here. Java is shown for reading; paste it into a Java tool on your computer to run it.