Leetcode Longest Substring With Same Letters After Name