1170. Compare Strings by Frequency of the Smallest Character 0