Topcoder BuildingHeightEasy problem