Given a list of values and an integer n, remove the n-th node from the end of the list and return the result as space-separated values.
1,2,3,4,5 2
1 2 3 5