<h3 class='likesectionHead' id='a-good-string-is-irreplaceable'><a id='x1-1000'></a>A Good String Is Irreplaceable</h3>

The examples used here are from the weekly challenge problem statement and demonstrate the working solution. Part 1: Replace all ? You are given a string containing only lower case English letters and ?. Write a script to replace all ? in the given string so that the string doesn’t contain consecutive repeating characters. The core of the solution is contained in a single subroutine. The resulting…