input: Write a Python function that substitutes spaces in a string with any given character.
  assert substitute_spaces("hello people", '@') == "hello@people"
  assert substitute_spaces("python program language", '$') == "python$program$language"
  assert substitute_spaces("blank space", '-') == "blank-space"
output: def substitute_spaces(s, char):
      return s.replace(" ", char)