input: Write a function to format a two-dimensional array as a table. Given a 2D array, the function should print it in a tabular format where each element is right-aligned within its column. If the given array is empty, the function should print nothing.
  assert printTable([[1, 2, 3], [4, 5, 6], [7, 8, 9]])==None
  assert printTable([[1, 12, 123], [4, 34, 56], [12, 899, 9]])==None
  assert printTable([[]])==None
  assert printTable([])==None
output: def printTable(arr):
      if not arr or not arr[0]:
          return
      col_widths = [max(len(str(row[i])) for row in arr) for i in range(len(arr[0]))]
      for row in arr:
          print(' '.join(str(row[i]).rjust(col_widths[i]) for i in range(len(row))))