InConsulting interview question

Problem solving : How do you identify if any given point lies within a rectangle