the solution of Remove Nth Node From End of List