Microsoft Interview Question

Writing an algorithm to solve size of objects given 4 points on a 2d Grid