ANR Software interview question

what is the difference between foreign key and primary key?