implement the move the duplicate element in the single list.
implement find the last n element in the single list.