Largest Substring Between Two Equal Characters

给一个字符串s, 求一种相同的字符之间的字符的最长长度. 先找到一个个字符的位置, 然后计算长度.