input: Write a python function to replace characters in a string with their respective indices.
  assert indices_replace("hello") == "01234"
  assert indices_replace("world") == "01234"
  assert indices_replace("abc") == "012"
output: def indices_replace(s: str) -> str:
      return ''.join(str(i) for i in range(len(s)))