input: def sort_by_length(strings: List[str]) -> List[str]:
      """ Sort the list of strings by their length.
      >>> sort_by_length(["cat", "dog", "apple", "banana"])
      ["cat", "dog", "apple", "banana"]
      """
output:     return sorted(strings, key=len)