X interview question

Use what data structure to solve a problem about first names and last names.