What causes the rock layers of mountains to form zigzag shape?

A. a transform fault
B. folding of rock
C. a normal fault
D. continental plate uplift

B. folding of rock