What’s a tenement?

A. A worker who specializes in carpentry
B. A group of poorly maintained and overcrowded apartments
C. A political official that oversees housing
D. A building designed for foreign ambassadors