Microchip Technology interview question

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