The correct answer is D. The teacher congratulated Ram and wished him success in life.
The teacher said to Ram, “Congratulations! Wish you success in life.” This means that the teacher is congratulating Ram on something, and is also wishing him success in life. The teacher could have said “I congratulate you, Ram,” or “Congratulations on your success,” or “I wish you success in life.” However, the teacher chose to say both of these things, which means that they are both important to the teacher.
The teacher’s words are likely to make Ram feel happy and proud. They may also motivate him to continue working hard and achieving his goals.