solution for remove Nth from end of list