Broadcom Interview Question

How to compute perspective correct texture coordinates when rendering a triangle