Replace All In String Javascript Programming Interview