Opendoor interview question

A data structure implementation question