Medpace Interview Question

what the diffrence between primary and foreign key?