Goldman Sachs interview question

Fix all bugs in code to modify strings