Create a Python program to search for a particular string in an array of strings and return the indices of the matches.
["hello", "world", "hello", "world"], "world"
def find_string(arr, query):
 indices = []
 for i in range(len(arr)):
  if arr[i] == query:
    indices.append(i)
 return indices

print(find_string(["hello", "world", "hello", "world"], "world"))