Answer explained
Indirect speech of: He said to the boy : Do not play in the sun is
Correct answer: (A) He forbade the boy to play in the sun
A negative command is reported using 'forbade ... to', without repeating 'not': "He forbade the boy to play in the sun."