Get Special String
Developers at Amazon are working on a text generation utility for one of their new products.
Currently, the utility generates only special strings. A string is special if there are no matching adjacent characters. Given a string s of length n, generate a special string of length n that is lexicographically greater than s. If multiple such special strings are possible, then return the lexicographically smallest string among them.
Notes:
A string a is lexicographically smaller than a string b if and only if one of the following conditions holds:
Important Considerations:
Complete the function getSpecialString in the editor below.
getSpecialString has the following parameter:
s: the input string
Returns
string: the lexicographically smallest string that is greater than s. If no such special string exists, return "-1".
πΌ βqΛπ³ Credit to Agnes and spike!πππΈ π
1Example 1

2Example 2
s are "abcdde", "abcdab", "abcdbc".
The lexicographically smallest special string that is greater than "abcde" is "abcda".3Example 3
Constraints
Limits and guarantees your solution can rely on.
s consists of lowercase English letters only.