Qualifying Window Segments - Coding problem | OneNoughtOne