Answer:
The Recency effect.
Step-by-step explanation:
The recency effect is the tendency to remember information that has been presented most recent.
The opposite of recency is primacy where there is a likelihood of remembering something since it was the first.
Due to recency effect, it was possible for the person to remember correctly the names of that appeared last but not those that had appeared earlier on the list.