Leetcode Longest Substring With Same Letters But Different