input: Write a python function to print a vertical pattern based on the input string.
  assert print_pattern("D O G S U") == 'D  O  G  S  U  \n'
  assert print_pattern("H E L L O W O R L D") == 'H  E  L  L  O  W  O  R  L  D  \n'
  assert print_pattern("P Y T H O N") == 'P  Y  T  H  O  N  \n'
output: def print_pattern(input_string):
      result = '  '.join(input_string.split()) + '  \n'
      return result