input: def arrange_numbers(arr):
      """
      Given a list of numbers, sort the elements that fit within the range of 1 to 9 inclusive,
      reverse the sorted list, and then convert each number to its word representation
      such as "One", "Two", "Three", "Four", "Five", "Six", "Seven", "Eight", "Nine".
  
      For example:
        arr = [2, 1, 1, 4, 5, 8, 2, 3]   
              -> sort arr -> [1, 1, 2, 2, 3, 4, 5, 8] 
              -> reverse arr -> [8, 5, 4, 3, 2, 2, 1, 1]
        return ["Eight", "Five", "Four", "Three", "Two", "Two", "One", "One"]
      
        If given an empty array, the output should be an empty array:
        arr = []
        return []
      
        If the list contains any invalid numbers, they should be ignored:
        arr = [1, -1, 55] 
              -> sort arr -> [-1, 1, 55]
              -> reverse arr -> [55, 1, -1]
        return ['One']
      """
output:     
      num_to_word = {
          1: "One", 2: "Two", 3: "Three", 4: "Four", 
          5: "Five", 6: "Six", 7: "Seven", 8: "Eight", 9: "Nine"
      }
      
      # Filter numbers between 1 and 9 inclusive
      filtered_numbers = [num for num in arr if 1 <= num <= 9]
      
      # Sort and then reverse the filtered list
      filtered_numbers.sort()
      filtered_numbers.reverse()
      
      # Convert numbers to their word representation
      result = [num_to_word[num] for num in filtered_numbers]
      
      return result
  