Pergunta de entrevista da empresa Intellisync

Given a point and a rectangle, write code to determine if the point lies inside the rectangle.