Replace All ?'s to Avoid Consecutive Repeating Characters(LeetCode 1576):

Problem