Remove ‘b’ and ‘ac’ from a given string
Given a string, write a function to eliminate all “b” and “ac” in the string NOTE : we should traverse the string only once and no extra space is allowed Method 1 In this method we will remove ‘ac’ only if ‘a’ and ‘c’ are consecutive Example INPUT : s …