input: Write a function to check if a query string contains another word string and return True if it does, otherwise return False. If query is empty and word is not, return False. If query is not empty and word is empty, return True. If both are empty, return True.
  assert check_contains("catering", "cat")==True
  assert check_contains("absolute", "abs")==True
  assert check_contains("railway", "car")==False
  assert check_contains("", "cat")==False
  assert check_contains("dog", "")==True
  assert check_contains("", "")==True
output: def check_contains(query, word):
      if not query and not word:
          return True
      elif not query:
          return False
      elif not word:
          return True
      else:
          return word in query