Compute worst-case guesses for adaptive hangman | Dropbox Interview Question