input: Write a function to format a two-dimensional array as a table. The function should align each column by its width. If the array is empty, it should print an empty line.
  assert printTable([[1, 2, 3], [4, 5, 6], [7, 8, 9]]) == None
  assert printTable([[123, 23, 3], [4, 555, 6], [7, 8, 9999]]) == None
  assert printTable([]) == None
  assert printTable([[1], [4], [7]]) == None
  assert printTable([[1, 22, 333], [44, 5, 6], [7, 8, 9]]) == None
output: def printTable(arr):
      if not arr:
          print()
          return
      
      col_widths = [max(len(str(item)) for item in col) for col in zip(*arr)]
      
      for row in arr:
          formatted_row = [str(item).rjust(col_widths[i]) for i, item in enumerate(row)]
          print(" ".join(formatted_row))