ABCDE interview question

difference between foreign key and primary key.