Longest Available Seat Segments - Coding problem | OneNoughtOne