Adobe Interview Question

The leetcode problem is Longest Happy String https://leetcode.com/problems/longest-happy-string/