Microchip Technology Interview Question

write a pseudo code for finding a contact(small rect) inside a irregular polygon