Broadcom interview question

How to compute perspective correct texture coordinates when rendering a triangle