Longest Nice Substring Leetcode