Leetcode Find The Longest Substring With At Most Knowledgeable Person