寻找多种排列字母的方法,使每个前缀和后缀的 B 比 Python 中的 As 多