input: from typing import List
  
  def third_largest(lst: List[int]) -> int:
      """Get the third largest element in the given list of integers.
      >>> third_largest([12, 13, 13, 45, 22, 99])
      22
      """
      if len(lst) < 3:
          return None
      distinct = []
      for i in lst:
          if i not in distinct:
              distinct.append(i)
      distinct.sort(reverse=True)
      return distinct[2]
output:     if len(distinct) < 3:
          return None