update removeNthFromEnd.cpp