Replace All ?'s to Avoid Consecutive Repeating Characters
Given a string s consisting only of lowercase English letters and the '?' character, replace all '?' characters with lowercase letters such that the final string does not contain any consecutive repeating characters. If it is not possible to replace all '?' characters, return an empty string; otherwise, return the modified string.
Ada AI
I want to discuss a solution
Help me solve this
Give more examples
What's wrong with my code?
How to use 'for loop' in javascript?
javascript (node 13.12.0)