generic solution, find number of s that can be formed with chars in t https://leetcode.com/submissions/detail/537300191/