input: from typing import List
  
  def check_contains(query: str, word: str) -> bool:
      """
      Check if the first string contains the second string.
      >>> check_contains("catering", "cat")
      True
      >>> check_contains("giraffe", "dog")
      False
      """
      if query.find(word) != -1:
          return True
      return False
output:     for i in range(len(query) - len(word) + 1):
          if query[i:i+len(word)] == word:
              return True
      return False