Change to direct speech

Ritam congragulated Vishnu on his success in the examination.

From Google

Direct speech is the reporting of speech by repeating the actual words of a speaker, for example “I'm going,” she said.