Compare Strings by Frequency of the Smallest Character

给两个字符串组, 比较两个字符串组的最小char的频率. 我就直接做的, 我看答案有二叉搜索