Intellisync interview question

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