Smallest Bounding Rectangle

UVA - 10173