Find valid split-stay listing combinations | Airbnb Coding Question