Amazon Interview Question

There was a question about describing an algorithm for calculating the points within the intersection of two rectangles on a single plane.