Microsoft interview question

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