Correct option is B
Sentence P introduces the character of the story, a little boy who had a very bad temper.
Sentence R follows P and explains how the boy's father decided to help him control his temper by giving him a bag of nails to hammer into the fence every time he lost his temper.
Sentence S describes the boy's behavior on the first day, when he hammered 37 nails into the fence.
Sentence Q then follows S and describes how the boy gradually began to control his temper over the next few weeks.
Therefore, the most logical order of the sentences to form a coherent paragraph is PRSQ.