Leetcode 1170. Compare Strings by Frequency of the Smallest Character | Hello Interview