https://stackoverflow.com/questions/75861653/how-can-i-find-each-subsequence-in-a-string-that-can-form-a-specific-target/75868686#75868686