Intel Corporation Interview Question

Describe how you would dim a light form 100% to 0% using pulse width modulation when programming a PIC micro controller