Got 0 building and 1 building test case to pass
Got both test cases to pass.
Cleaned up code.
changed maxY dictionary to array
final cleanup