Change the voice: "Did he buy mangoes?"

Change the voice: "Did he buy mangoes?"

Explanation

Change the voice: "Did he buy mangoes?" Were mangoes bought by him

The sentence is in past simple tense (Did + base verb).

Passive voice becomes: Were + past participle (bought) + by + subject.