input: Write a python function to check if a given input string has an anagram in a list of strings.
  assert anagram_in_list("listen", ["enlist", "google", "inlets", "banana"]) == True
  assert anagram_in_list("hello", ["world", "python", "java"]) == False
  assert anagram_in_list("abcd", ["dcba", "abcd", "cbad"]) == True
output: def anagram_in_list(input_string, string_list):
      sorted_input = sorted(input_string)
      for s in string_list:
          if sorted(s) == sorted_input:
              return True
      return False