Contained Region Count - Coding problem | OneNoughtOne