input: Write a function to format a two-dimensional array as a table with each element right-aligned. If the given array is empty, print an empty line.
  assert printTable([[1, 222, 3], [44444, 5, 6], [777, 888888, 9]])==None
  assert printTable([])==None
output: def printTable(arr):
      if not arr:
          print()
          return
      col_widths = [max(len(str(item)) for item in row) for row in zip(*arr)]
      for row in arr:
          print(' '.join(str(item).rjust(col_widths[i]) for i, item in enumerate(row)))