Function to copy temporary solution to the final solution
def copyToFinal ( curr_path ) : NEW_LINE INDENT final_path [ : N + 1 ] = curr_path [ : ] NEW_LINE final_path [ N ] = curr_path [ 0 ] NEW_LINE DEDENT