Versono Medical interview question

Explain how a half-bridge rectifier works