Given:
Which would cause s to be AQCD?
s.replace(s.indexOf(“A”), s.indexOf(“C”), “Q”);
s.replace(s.indexOf(“B”), s.indexOf(“C”), “Q”);
s.replace(s.indexOf(“B”), s.indexOf(“B”), “Q”);
s.replace(s.indexOf(“A”), s.indexOf(“B”), “Q”);
Submit