@junyan2 You can repeat the letters. **winks**
@elmirap your approach is wrong, in case of "eab", your code will give output as
where as the answer should be
Please have a look at
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.