Which type of exercise contributes most to building strong bones?

Which type of exercise contributes most to building strong bones?
A. Swimming
B. Lifting weights
C. Walking briskly
D. Jumping rope