Apartment hunting problem leetcode ...