input: Write a python function to search for the indices of a character in a string.
  assert search_character("hello", "l") == [2, 3]
  assert search_character("test", "t") == [0, 3]
  assert search_character("python", "p") == [0]
  assert search_character("character", "a") == [2, 6]
output: def search_character(s: str, char: str) -> list:
      return [i for i, c in enumerate(s) if c == char]