What is the function of a condenser in a refrigeration system?
A) To absorb heat from the surroundings
B) To reject heat to the surroundings
C) To compress the refrigerant
D) To expand the refrigerant