Hello,
The answer is "My best friend Ram bought me a pen".
Reason:
A passive sentence basically is putting more detail in the verb and the verb is Ram so i added my best friend Ram bought me a pen in order to better explain the subject.
If you need anymore help feel free to ask me!
Hope this helps!
~Nonportrit