X Interview Question

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