code: def print_optimal_solution(optimal_solution, i, j):
      """Print the solution
  
      optimal_solution -- int[][]
      i -- int[]
      j -- int[]
      """
      if i == j:
          print("A" + str(i), end=" ")
      else:
          print("(", end=" ")
          print_optimal_solution(
              optimal_solution, i, optimal_solution[i][j]
          )
          print_optimal_solution(
              optimal_solution, optimal_solution[i][j] + 1, j
          )
          print(")", end=" ")
  
label_desc: Use image node_id 2 for calling a global function with example usage: print_optimal_solution(optimal_solution, i, j) without return types