Accenture Interview Question

Can you explain the difference between primary key and foreign key in a relational database, and how they help maintain database integrity?"