Opendoor interview question

leetcode medium