Looks weird to be iterating over "all_hints" using a "problem". Can you think of better variable names for both?